import request from '@/utils/request2'

//开始录制
export const startRecord = (id) => {
    return request({
        url: `/api/monitor/${id}`,
        method: 'post',
    })
}

//rrweb上传分段
export const uploadRecord = (id, data) => {
    return request({
        url: `/api/monitor/${id}/upload`,
        method: 'post',
        data
    })
}

//结束录制
export const stopRecord = (id) => {
    return request({
        url: `/api/monitor/${id}/end`,
        method: 'post',
    })
}